package org.cybot.generator;

import java.util.List;

import org.cybot.entities.Cyclist;
import org.cybot.entities.Team;

public class TeamGenerator extends AbstractGenerator<Team> {

	@SuppressWarnings("unchecked")
	public Team generateInstance(Object... params) {
		String name = shortString();
		List<Cyclist> cyclists = (List<Cyclist>) params[0];
		return new Team(name, cyclists);
	}

}
